function showrecentpostswiththumbs(json) {document.write('<ul class="recent_posts_with_thumbs">'); for (var i = 0; i < numposts; i++) {var entry = json.feed.entry[i];var posttitle = entry.title.$t;var posturl;if (i == json.feed.entry.length) break;for (var k = 0; k < entry.link.length;k++){
if(entry.link[k].rel=='replies'&&entry.link[k].type=='text/html'){var commenttext=entry.link[k].title;var commenturl=entry.link[k].href;}
  if (entry.link[k].rel == 'alternate') {posturl = entry.link[k].href;break;}}var thumburl;try {thumburl=entry.media$thumbnail.url.replace(/\/s72\-c\//,"/s85-c/");}catch (error)


{
s=entry.content.$t;a=s.indexOf("<img");b=s.indexOf("src=\"",a);c=s.indexOf("\"",b+5);d=s.substr(b+5,c-b-5);if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!="")){
thumburl=d;} else thumburl='http://lh5.googleusercontent.com/-2HiyM_7A_Yo/UJoVEeA9C8I/AAAAAAAAP1E/p7JQBt-sPG8/s72/Moozik-Portal-Facebook-Thumb.png';

}

document.write('<li class="clearfix">');

if(showpostthumbnails==true) 
document.write('<a href="'+posturl+'" title="'+posttitle+'"><img class="recent_thumb" src="'+thumburl+'" alt="'+posttitle+'"/></a>');
document.write('<a href="'+posturl+'">'+posttitle+'</a><br/>');

    if ("content" in entry) {
      var postcontent = entry.content.$t;}
    else
    if ("summary" in entry) {
      var postcontent = entry.summary.$t;}
    else var postcontent = "";
    var re = /<\S[^>]*>/g; 
    postcontent = postcontent.replace(re, "");


if (showpostsummary == true) {

      if (postcontent.length < numchars) {
         document.write(postcontent);
          }
      else {
         postcontent = postcontent.substring(0, numchars);
         var quoteEnd = postcontent.lastIndexOf(" ");
         postcontent = postcontent.substring(0,quoteEnd);
         document.write(postcontent + '...');
          }
}

var towrite='';var flag=0;

document.write('</li>');
}
document.write('</ul>');


}